package orxatas.travelme.entity;

/**
 * Lugar
 * Entidad que representa un lugar.
 * */
public class Place {
	final Geopoint position;
	private int idOnline;
	private String name;
	private PlaceType placeType;
	private String description;
	private String longLocation;
	private float rate;
	
	/**
	 * Constructor
	 * @param {Coordinate} position Posición geolocalizada del lugar.
	 * @param {int} placeID Identificador del lugar (destinia.com)
	 * */
	public Place(int idOnline, Geopoint position){
		this.idOnline = idOnline;
		this.position = position;		
	}
	
	public Place(int idOnline,String name, Geopoint position){
		this.idOnline = idOnline;
		this.position = position;
		this.name = name;
	}

	public Geopoint getPosition() {
		return position;
	}

	public int getIdOnline() {
		return idOnline;
	}

	public String getName() {
		return name;
	}

	public PlaceType getPlaceType() {
		return placeType;
	}

	public void setPlaceType(PlaceType placeType) {
		this.placeType = placeType;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getLongLocation() {
		return longLocation;
	}

	public void setLongLocation(String longLocation) {
		this.longLocation = longLocation;
	}

	public float getRate() {
		return rate;
	}

	public void setRate(float rate) {
		this.rate = rate;
	}
	
}
